package com.synergy.stockflow.production.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.synergy.stockflow.production.create.ReportOrTaskVo;
import com.synergy.stockflow.production.entity.ProductionReport;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductionReportService extends IService<ProductionReport>{

    List<ProductionReport> selectAll(Page<ProductionReport> objectPage);

    /**
     * 更新报工单信息
     */
    void updateReport(String reportId, ReportOrTaskVo updateDTO);


    int updateListStatus(String reportId);

    int countCurrentMonthPlans();

    List<ProductionReport> selectByReport(Page<ProductionReport> objectPage,
                                          @Param("taskId")String taskId,
                                          @Param("materialName")String materialName,

                                          @Param("reportPeopleId")String reportPeopleId,
                                          @Param("checkId")String checkId);
}
